package com.bw.ogin.model

import com.bw.common.model.BaseRepository
import com.bw.network.HttpInterceptorType
import com.bw.ogin.api.LoginApiServer
import com.bw.ogin.entity.LoginResultEntity
import okhttp3.RequestBody
import javax.inject.Inject

/**
 * 登录的仓库
 */
class LoginRepositoryHilt @Inject constructor(private val apiServer:LoginApiServer){
    //账户登录
    suspend fun loginToServer(body:RequestBody):LoginResultEntity = apiServer.loginToServer(body)

    //账户注册
    suspend fun registerToServer(body: RequestBody):LoginResultEntity = apiServer.registerToServer(body)


}